package com.bz.pojo;

//@Configuration //添加此注解可以将此对象交给工厂管理，和@Component没有区别，用于对象创建
//用于演示xml，因此注释 222
public class User {

    private String id;
    private String name;


    public User() {
    }

    public User(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
